// 时间戳转换标准时间格式
const toDate = (time) => {
  const date = new Date(time)
  let string = `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()} ${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`
  return string
}

export default {toDate}
